﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Edit.Master" Inherits="System.Web.Mvc.ViewPage<Langben.DAL.CinerariumSale>" %>

<%@ Import Namespace="Common" %>
<%@ Import Namespace="Models" %>
<asp:Content ID="Content4" ContentPlaceHolderID="CurentPlace" runat="server">
    修改寄存位销售
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <fieldset>
        <legend>
            <input class="a2 f2" type="submit" value="修改" />
            <input class="a2 f2" type="button" onclick="BackList('CinerariumSale')" value="返回列表" />
        </legend>
        <div class="bigdiv">
            <%: Html.HiddenFor(model => model.RowGuid ) %><%: Html.HiddenFor(model => model.CreateTime ) %><%: Html.HiddenFor(model => model.CreatePerson ) %>
            <div class="editor-label">
                <a class="anUnderLine" onclick="showChooseModal('AddressId','AddressName','../../Cinerarium/Choose');">
                    <%: Html.LabelFor(model => model.AddressName) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkAddressId">
                    <%  if (Model != null)
                        {
                            if (null != Model.AddressId)
                            {%>
                    <table id="<%: Model.AddressId %>"
                        class="deleteStyle">
                        <tr>
                            <td>
                                <img alt="删除" title="点击删除" onclick="deleteChooseTable('<%: Model.AddressId %>','AddressId','AddressName');" src="../../../Images/deleteimge.png" />
                            </td>
                            <td>
                                <%: Model.AddressName%>
                            </td>
                        </tr>
                    </table>
                    <%}
                        }%>
                </div>
                <%: Html.HiddenFor(model => model.AddressName)%>
            </div>
            <div class="editor-label" style="display: none">
                <%: Html.LabelFor(model => model.AddressId) %>：
            </div>
            <div class="editor-field" style="display: none">
                <%: Html.EditorFor(model => model.AddressId) %>
                <%: Html.ValidationMessageFor(model => model.AddressId) %>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Type) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.Type) %>
                <%: Html.ValidationMessageFor(model => model.Type) %>
            </div>
            <div class="editor-label">
                <a class="anUnderLine" onclick="showModalOnly('BuyerId','../../Buyer');">
                    <%: Html.LabelFor(model => model.BuyerId) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkBuyerId">
                    <%  if (Model != null)
                        {
                            if (null != Model.BuyerId)
                            {%>
                    <table id="<%: Model.BuyerId %>"
                        class="deleteStyle">
                        <tr>
                            <td>
                                <img alt="删除" title="点击删除" onclick="deleteTable('<%: Model.BuyerId %>','BuyerId');" src="../../../Images/deleteimge.png" />
                            </td>
                            <td>
                                <%: Model.Buyer.BuyerName%>
                            </td>
                        </tr>
                    </table>
                    <%}
                        }%>
                </div>
                <%: Html.HiddenFor(model => model.BuyerId)%>
            </div>
            <div class="editor-label">
                <a class="anUnderLine" onclick="showModalOnly('DepositorId','../../Depositor');">
                    <%: Html.LabelFor(model => model.DepositorId) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkDepositorId">
                    <%  if (Model != null)
                        {
                            if (null != Model.DepositorId)
                            {%>
                    <table id="<%: Model.DepositorId %>"
                        class="deleteStyle">
                        <tr>
                            <td>
                                <img alt="删除" title="点击删除" onclick="deleteTable('<%: Model.DepositorId %>','DepositorId');" src="../../../Images/deleteimge.png" />
                            </td>
                            <td>
                                <%: Model.Depositor.IsDeposit%>
                            </td>
                        </tr>
                    </table>
                    <%}
                        }%>
                </div>
                <%: Html.HiddenFor(model => model.DepositorId)%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Date) %>：
            </div>
            <div class="editor-field">
                <%: Html.TextBox("Date", ((Model != null && Model.Date != null) ? Model.Date.ToString().AsDateTime().ToString("yyyy-MM-dd") : ""), new { style = "width: 244px;", @class="easyui-datebox" })%>
                <%: Html.ValidationMessageFor(model => model.Date) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.DateCount) %>：
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.DateCount, new {  onkeyup = "isInt(this)", @class="text-box single-line" })%>
                <%: Html.ValidationMessageFor(model => model.DateCount) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Price) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.Price) %>
                <%: Html.ValidationMessageFor(model => model.Price) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Photo) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.Photo) %>
                <%: Html.ValidationMessageFor(model => model.Photo) %>
            </div>
            <br style="clear: both;" />
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Remark) %>：
            </div>
            <div class="textarea-box">
                <%: Html.TextAreaFor(model => model.Remark) %>
                <%: Html.ValidationMessageFor(model => model.Remark) %>
            </div>

        </div>
    </fieldset>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">

    <script type="text/javascript">

        $(function () {


        });


    </script>
</asp:Content>

